package me.baseframework.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by hggxg on 2016/10/29.
 */
@Controller
public class DemoController {

    @RequestMapping("/demo")
    @ResponseBody
    public Map demo() {
        return new HashMap() {{
            put("name", "张三");
        }};
    }

    public static void main(String[] args) {

    }

}
